<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试</title>
</head>

<body>
     <p>链接状态：<span id="state"></span></p> 
    <!--<video src="https://oceancode.top/01.mp4" controls width="100%"></video>-->

</body>

</html>
 <script language="javascript">
    ws = new WebSocket("wss://dzb.tszpz.cn:8383");
    ws.onopen = function () {
        document.getElementById('state').innerHTML = '链接成功'
        ws.send('tom');
        // console.log(ws.readyState)

    };

    // document.getElementById('state').innerHTML = '链接失败'

    ws.onmessage = function (e) {
        
    };
</script> 
